#ifndef _SOCKETDEF_H_
#define _SOCKETDEF_H_

#include <util/core.hpp>


typedef unsigned long	ip_port;
typedef const char*		ip_addr_s;
typedef unsigned long	ip_addr_l;


#if (TARGET_OS == OS_WINDOWS)
    typedef SOCKET              os_sock_t;
#elif (TARGET_OS == OS_POSIX)
    #define INVALID_SOCKET      -1
    typedef int                 os_sock_t;
#elif (TARGET_OS == OS_MAC)
	#define INVALID_SOCKET      -1
	typedef int                 os_sock_t;
#endif

#endif
